package cn.comtom.ewbs.signature.service;

import com.sun.jna.Library;
import com.sun.jna.Native;

import cn.comtom.ewbs.signature.common.vo.request.Sm2Req;

/**
 * @author liuhy
 *
 */
public interface Sm2Service {
    interface Sm2Jni extends Library {
    	public static final Sm2Jni INSTANCE = (Sm2Jni)Native.loadLibrary("sm2", Sm2Jni.class);
        String SM2_Json(String jsonstr);
    }
    
    /**
     * 签名
     * @param req
     * @return
     */
    String getByteSign(Sm2Req req);
    
    /**
     * 验证签名
     * @param req
     * @return
     */
    boolean verifyByteSign(Sm2Req req);
    
}
